package be.kuleuven.peno3.mobiletoledo.model;

import java.util.Date;
import java.util.Calendar;
import java.util.GregorianCalendar;

public class Announcement {
	private int id;
	private String author;
	private String title;
	private String text;
	private String date;
	private Calendar cal=null;

	public String getAuthor() {
		return author;
	}

	public String getTitle() {
		return title;
	}

	public String getContent() {
		return text;
	}
	public Calendar getPostDate(){
		cal=new GregorianCalendar();
		cal.setTime(new Date(date));
		return cal;
	}
	public int getId(){
		return id;
	}
}
